<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
<xsl:stylesheet 
 version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" 
exclude-result-prefixes="msxml">

<xsl:output method="xml" omit-xml-declaration="yes"/>

<xsl:template match="root">
<table>
	<tr>
	<th>Id</th>
	<th>Timestamp</th>
	<th>Fornavn</th>
	<th>Andersen</th>
	<th>Email</th>
	<th>Adresse</th>
	<th>By</th>
	</tr>
	<xsl:apply-templates select="//order" />
</table>
</xsl:template>

<xsl:template match="order">
<tr>
	<td><xsl:value-of select="@id" /></td>
	<td><xsl:value-of select="timestamp" /></td>
	<xsl:apply-templates select="customerInfo" />
</tr>	
</xsl:template>

<xsl:template match="customerInfo">
<xsl:for-each select="data">
	<td><xsl:value-of select="value" /></td>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>